.Net Framework > v3.5.21022.8 > System > DirectoryServices > AccountManagement > PrincipalCollection > Remove Remove(ComputerPrincipal)
Remove(GroupPrincipal)
Remove(Principal)
Remove(PrincipalContext,IdentityType,String)
Remove(UserPrincipal)


Remove(ComputerPrincipal)

Category
Method
Description
Removes the specified System.DirectoryServices.AccountManagement.ComputerPrincipal object from the collection, and returns true if the System.DirectoryServices.AccountManagement.ComputerPrincipal was a member of this System.DirectoryServices.AccountManagement.PrincipalCollection, and false otherwise (in which case the method performs no operation).
Type
Boolean
Character
public
Parameters
NameTypeDescription
computerComputerPrincipal
Attributes
NameValue/Assignment
SecurityCriticalAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Remove(GroupPrincipal)

Category
Method
Description
Removes the specified System.DirectoryServices.AccountManagement.GroupPrincipal object from the collection, and returns true if the System.DirectoryServices.AccountManagement.GroupPrincipal was a member of this System.DirectoryServices.AccountManagement.PrincipalCollection, and false otherwise (in which case the method performs no operation).
Type
Boolean
Character
public
Parameters
NameTypeDescription
groupGroupPrincipal
Attributes
NameValue/Assignment
SecurityCriticalAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Remove(Principal)

Category
Method
Description
Removes the specified System.DirectoryServices.AccountManagement.Principal object from the collection, and returns true if the System.DirectoryServices.AccountManagement.Principal was a member of this System.DirectoryServices.AccountManagement.PrincipalCollection, and false otherwise (in which case the method performs no operation).
Type
Boolean
Character
public, Sealed
Parameters
NameTypeDescription
principalPrincipal
Attributes
NameValue/Assignment
SecurityCriticalAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Remove(PrincipalContext,IdentityType,String)

Category
Method
Description
Finds the System.DirectoryServices.AccountManagement.UserPrincipal object specified by the given System.DirectoryServices.AccountManagement.PrincipalContext and / pair from the collection, and returns true if the identified System.DirectoryServices.AccountManagement.Principal was a member of this System.DirectoryServices.AccountManagement.PrincipalCollection, and false otherwise (in which case the method performs no operation).
Type
Boolean
Character
public
Parameters
NameTypeDescription
contextPrincipalContext
identityTypeIdentityType
identityValueString
Attributes
NameValue/Assignment
SecurityCriticalAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Remove(UserPrincipal)

Category
Method
Description
Removes the specified System.DirectoryServices.AccountManagement.UserPrincipal object from the collection, and returns true if the System.DirectoryServices.AccountManagement.UserPrincipal was a member of this System.DirectoryServices.AccountManagement.PrincipalCollection, and false otherwise (in which case the method performs no operation).
Type
Boolean
Character
public
Parameters
NameTypeDescription
userUserPrincipal
Attributes
NameValue/Assignment
SecurityCriticalAttribute
Tags
01892ABD01, 02E3ABA98D, 0322962271

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database